import Home from './views/home';
import Detail from './views/movie';

// import AC from './components/async_load';
const routes = [
    {
        name: '首页',
        path: '/',
        // component: AC(() => import('./views/home'))
        component: {Home}
    },
    {
        name: '详情页',
        path: '/detail/:id',
        // component: AC(() => import('./views/movie'))
        component: {Detail}
    }
];

export default routes;